package net.mingsoft.zwy.biz;

import net.mingsoft.zwy.biz.q.EmailQuery;
import net.mingsoft.zwy.biz.q.MsgQuery;
import net.mingsoft.zwy.biz.r.SendMsgResponse;

import java.io.UnsupportedEncodingException;

/**
 * @author gengfa
 * @date 22/02/16
 */
public interface MessageSendBiz {

    /**
     * 发送短信消息
     * @param query sms消息
     * @return 响应结果
     */
    SendMsgResponse sendMsg(MsgQuery query);

    /**
     * 发送邮件
     * @param query 邮件消息
     */
    void sendEmail(EmailQuery query);
}
